package net.junaoki.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ActionSupport;

@ParentPackage("struts-default")
public class ShowJSPAction extends ActionSupport{
    
    private static final long serialVersionUID = -1310335541506532789L;
    
    private String dataSourceNames;

    @Override
    @Action(value="ShowJSP", results = {
            @Result(name = SUCCESS, location="/jsp/Some.jsp")
	    }
    )
    public String execute(){
        dataSourceNames = "some value";
        
        return SUCCESS;
        
    }

    public void setDataSourceNames(String dataSourceNames) { this.dataSourceNames = dataSourceNames; }
    public String getDataSourceNames() { return dataSourceNames; }

}
